import request from '@/utils/request'

export function getInitialLoading(data) {
  return request({
    url: '/catalogDetail/getInitialLoading',
    method: 'post',
    params: data
  })
}

export function getInitialLoading1(data) {
  return request({
    url: '/catalogDetail/getInitialLoading1',
    method: 'post',
    params: data
  })
}

export function getInitialLoading2(data) {
  return request({
    url: '/catalogDetail/getInitialLoading2',
    method: 'post',
    params: data
  })
}

export function getAgainLoading(data) {
  return request({
    url: '/catalogDetail/getAgainLoading',
    method: 'post',
    params: data
  })
}

export function getTreeListInAuthority(data) {
  return request({
    url: '/catalogDetail/getTreeListInAuthority',
    method: 'post',
    params: data
  })
}

export function deleteInLogic(data) {
  return request({
    url: '/catalogDetail/deleteInLogic',
    method: 'post',
    params: data
  })
}

export function saveData(data) {
  return request({
    url: '/catalogDetail/save',
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: '/catalogDetail/getInfo',
    method: 'get',
    params: data
  })
}

export function copyCatalog(data) {
  return request({
    url: '/catalogDetail/copy',
    method: 'post',
    data
  })
}

export function moveCatalog(data) {
  return request({
    url: '/catalogDetail/move',
    method: 'post',
    data
  })
}

export function getAllLeafNode(data) {
  return request({
    url: '/catalogDetail/getAllLeafNode',
    method: 'get',
    params: data
  })
}

export function getAllLeafNode2(data) {
  return request({
    url: '/catalogDetail/getAllLeafNode2',
    method: 'get',
    params: data
  })
}

export function getAgainLoading1(data) {
  return request({
    url: '/catalogDetail/getAgainLoading1',
    method: 'post',
    params: data
  })
}
